#from ky
from flask import Flask, request, make_response, redirect, render_template

app = Flask(__name__)
print(__name__)


@app.route('/')
def books ():
    books =[
        {
            'name':u'西游记',
            'author':u'吴承恩',
            'price':18
        },
        {
            'name': u'红楼梦',
            'author': u'曹雪芹',
            'price': 20
        },
        {
            'name': u'三国演义',
            'author': u'罗贯中',
            'price': 22
        },
        {
            'name': u'水浒传',
            'author': u'施耐庵',
            'price': 24
        }
    ]

    return render_template('book.html',_books=books)

if __name__ == '__main__':
    app.run(debug=True)